package com.topvision.auth.repository;



import com.topvision.auth.domain.SysUser;
import com.topvision.auth.repository.support.BaseRepository;

import java.util.Optional;

/**
 * Created by wangyunfei on 2017/6/9.
 */
public interface SysUserRepository extends BaseRepository<SysUser,Long> {
    Optional<SysUser> findOneWithRolesByUsername(String username);

    Optional<SysUser> findOneWithRolesById(Long id);

    Optional<SysUser> findByUsername(String userName);
}
